import request from '@/utils/request.js'

export function getCredential(ext, path) {
	return request({
		url: '/cos/credential',
		data: { ext, path }
	})
}

// 删除COS文件
export function removeCosFile(path, key) {
	return request({ url: '/cos/delete', data: { path, key } })
}